package org.xdq.单例模式.饿汉式;

public class Test {
    public static void main(String[] args) throws ClassNotFoundException {

        Class.forName("org.xdq.单例模式.饿汉式.Instance");//类的初始化

        System.out.println("=======================");

        Instance instance1 = Instance.getInstance();
        Instance instance2 = Instance.getInstance();

        System.out.println(instance1 == instance1);

    }
}
